package ooday01;

public class StudentTest {
    public static void main(String[] args) {
       /* //创建一个学生对象
        Student zs=new Student();//声明Student类型引用zs指向一个学生对象
        zs.name="张三";
        zs.age=25;
        zs.className="jsd2302";
        zs.stuId="001";
        zs.study();
        zs.sayHi();
        zs.playWith("李四");


        Student ls=new Student();
        ls.sayHi();
        ls.study();
        ls.playWith("张三");

        */
        Student zs=new Student();
        String name="张三";
        int age=22;
        String className="2302";
        String stuId="001";
        zs.study();
        zs.playWith("李四");
        zs.sayHi();


        Student ls=new Student("李四",25);
        ls.sayHi();
        ls.study();
        ls.playWith("张三");


        Student ww=new Student("王五",28,"2302","003");
        ww.playWith("张三");
        ww.study();
        ww.sayHi();
    }
}
